package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class ResetCheckCodeRequest extends BaseRequest {

    public static final String PATH = BaseRequest.PATH + "api/verify_reset_code";

    private String phoneNum;

    private String code;

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        ResetCheckCodeRequestBody body = new ResetCheckCodeRequestBody();
        body.setPhoneNum(phoneNum);
        body.setCode(code);
        return body;
    }

    private class ResetCheckCodeRequestBody extends BaseRequestBody {

        @SerializedName("Phone")
        private String phoneNum;

        @SerializedName("Code")
        private String code;

        private ResetCheckCodeRequestBody() {
            setSv(BaseRequestConfig.SV_RESET_CHECK_CODE);
        }

        public String getPhoneNum() {
            return phoneNum;
        }

        public void setPhoneNum(String phoneNum) {
            this.phoneNum = phoneNum;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }
    }
}
